<template>
	<view>
		<u-select v-model="show" :list="list" :default-value="defaultValue" @confirm="confirm"></u-select>
		<u-button @click="show = true">打开</u-button>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	const show = ref(false);
	const list = ref([{
			value: '1',
			label: '江'
		},
		{
			value: '2',
			label: '湖'
		}
	]);
	const defaultValue = ref([1]);
	const confirm = (e) => {
		defaultValue.value = [e[0].index];
	};
</script>